<template>
	<view class="content">
		<image :src="imgUrl+'/static/image/my/zt.png'" mode="widthFix" @click="caozuo"></image>
	</view>
</template>

<script>
	// import { port1, port2 } from "@/api/packA/index.js"
	export default {
		data() {
			return {
				address:""
			}
		},
		computed:{
			imgUrl(){
				return this.$imgUrl
			}
		},
		onLoad() {
			let _this = this
			console.log(111);
			uni.getLocation({
				type: 'gcj02', // 默认为wgs84的gps坐标，如果要返回直接给openLocation用的火星坐标，可传入'gcj02'
				success: function(res) {
					console.log(res, '160');
					_this.address = res
					// 获取经纬度
					// var latLng = new qq.maps.LatLng(res.latitude, res.longitude)
					// getAddr.getAddress(latLng)
				},
			})
		},
		mounted() {
			
		},
		methods: {
			caozuo() {
				uni.showLoading({
					title: '拼命加载中...'
				});
				setTimeout(function () {
					uni.hideLoading();
					uni.showToast({
						title: '敬请期待！！！',
						icon: "none",
						duration: 1000
					});
				}, 2000);
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		image {
			width: 100%;
		}
	}
</style>